
import { ConfigProvider } from "antd";
import { createHashHistory } from "history";
import { Router, Route, Switch } from "react-router-dom";
import lazy from 'utils/lazy';
import zhCN from 'antd/lib/locale/zh_CN';

const Dev = lazy(() => import('pages/Dev'));
const Home = lazy(() => import('pages/Home'));

export default function App() {
  return (
    <ConfigProvider locale={zhCN}>
      <Router history={createHashHistory()} >
        <Switch>
          <Route exact path="/dev" component={Dev} />
          <Route path="/" component={Home} />
        </Switch>
      </Router>
    </ConfigProvider>
  );
}

